<html>

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<script type="text/javascript" src="../../zxt/zxt.js"></script>
		<script>
			importZXT("../../zxt");
		</script>
	</head>

	<body>

		<div id="hidden1" zxt="zxt.ui.Hidden" zxt.value="aaa"></div>
		<div id="hiddenbox1"></div>
		<hr>
		<table>
			<tr>
				<td width="20%">getType()</td>
				<td width="50%">返回控件类型</td>
				<td><input type="button" name="getType" value="getType" 
					onclick="alert('隐藏控件的type为'+$zxtUI.hidden1.getType());"/></td>
			</tr>
			<tr>
				<td width="20%">getValue()</td>
				<td width="50%">返回值</td>
				<td><input type="button" name="getValue" value="getValue" 
					onclick="alert('隐藏控件控件的值为'+$zxtUI.hidden1.getValue());"/></td>
			</tr>
			<tr>
				<td>renderValue() </td>
				<td>设置控件值</td>
				<td><input type="button" name="renderValue" value="renderValue" 
					onclick="$zxtUI.hidden1.renderValue('ABC');alert('隐藏控件已设值');"/></td>
			</tr>
			<tr>
				<td>getMask() </td>
				<td>[MASK]模式下的显示字符串</td>
				<td><input type="button" name="getMask" value="getMask" 
					onclick="alert('隐藏控件控件的getMask为'+$zxtUI.hidden1.getMask());"/></td>
			</tr>
		</table>
		
		<div><a href="../index.html">返回</a></div>
	</body>
	
</html>

<script type="text/javascript">
	$zxt.init();
	
	var box = new zxt.ui.Hidden();
    box.setValue("bbb");
    $("#hiddenbox1").append(box.render());
	
	
</script>
